int main() {
    int i=1;
    int expr6=0;
    while (i <= 5) {
        int j = 1;
        int term = 1;
        while (j <= i) {
            term = term * j;
            j = j + 1;
        }
        expr6 = expr6 + term;
        i = i + 1;
    }
    return expr6;
}
